<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<div id="com-topbar">
    <div class="inner">
        <ul>
            <c:choose>
                <c:when test="${empty currentUser}">
                    <li class="homepage"><a href="${ctx}/" class="index"><em></em>返回首页</a></li>
                    <li><a href="http://www.meilishuo.com/user/connect/weixin"><em class="weixin"></em>微信登录</a></li>
                    <li><a href="http://www.meilishuo.com/user/connect/qq"><em class="qq"></em>QQ登录</a></li>
                    <li><a href="${ctx}/account/sign/in" data-ptp-cache-id="1._mf80_1193_17139.0.3.sU4rn">登录</a></li>
                    <li><a href="${ctx}/account/sign/up">注册</a></li>
                </c:when>
                <c:otherwise>
                    <li class="drop">
                        <a href="" class="nick" target="_blank">
                            <img class="face" src="${ctx}/static/new1/v1/bdefaultavatar/03.jpg"/>
                            <c:if test="${not empty currentUser.account.screenName}">
                                <c:choose>
                                    <c:when test="${fn:length(currentUser.account.screenName) > 4}">
                                        <c:out value="${fn:substring(currentUser.account.screenName, 0, 4)}..."/>
                                    </c:when>
                                    <c:otherwise>
                                        <c:out value="${currentUser.account.screenName}"/>
                                    </c:otherwise>
                                </c:choose>
                            </c:if>
                            <em class="arrow"></em>
                        </a>
                        <ul class="down account">
                            <li><a href="${ctx}/account/info" target="_blank">账号与安全</a></li>
                            <li><a href="${ctx}/account/sign/out">登出</a></li>
                        </ul>
                    </li>
                </c:otherwise>
            </c:choose>

            <li class="drop">
                <a href="${ctx}/account/ruby/mylike" target="_blank">
                    <em class="collect"></em>我的收藏
                </a>
                <ul class="down">
                    <li><a href="${ctx}/account/ruby/mylike" target="_blank">收藏宝贝</a></li>
                    <li><a href="${ctx}/account/enterprise/mylike" target="_blank">收藏商家</a></li>
                </ul>
            </li>
            <li class="drop cart-wrapper">
                <a target="_blank" href="${ctx}/cart/mycart" class="my-cart">
                    <em class="cart"></em>我的购物车
                </a>

                <div class="hidden">
                    <ul class="cart-goods"></ul>
                    <p class="cart-account">
                        <span>购物车里还有<a class="num" href="http://cart.meilishuo.com/mls/cart/mycart" target="_blank"></a>件商品</span>
                        <a class="check-cart" href="http://cart.meilishuo.com/mls/cart/mycart" target="_blank">查看购物车</a>
                    </p>
                </div>
            </li>
            <li><a href="http://buyer.meilishuo.com/mls/order/list4buyer" target="_blank"><em
                    class="order"></em>我的订单</a></li>
            <li class="drop"><a target="_blank">帮助中心<em class="arrow"></em></a>
                <ul class="down">
                    <li><a href="http://www.meilishuo.com/helpcenter/buyerService/" target="_blank">买家服务</a></li>
                    <li><a href="http://xd.meilishuo.com/pc/shopadmin/help/home" target="_blank">商家服务</a></li>
                    <li><a href="http://www.meilishuo.com/helpcenter/ruleCenter/" target="_blank">规则中心</a></li>
                </ul>
            </li>
            <li>
                <a href="${ctx}/producer/base/home" target="_blank" class="last">卖家中心</a>
            </li>
        </ul>
    </div>
</div>
